# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding model 'AutoType'
        db.create_table('washing_autotype', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('description', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('washing', ['AutoType'])

        # Adding model 'Service'
        db.create_table('washing_service', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=250)),
            ('description', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal('washing', ['Service'])

        # Adding model 'Price'
        db.create_table('washing_price', (
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('sum', self.gf('django.db.models.fields.FloatField')()),
            ('service', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['washing.Service'])),
            ('autotype', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['washing.AutoType'])),
        ))
        db.send_create_signal('washing', ['Price'])


    def backwards(self, orm):
        
        # Deleting model 'AutoType'
        db.delete_table('washing_autotype')

        # Deleting model 'Service'
        db.delete_table('washing_service')

        # Deleting model 'Price'
        db.delete_table('washing_price')


    models = {
        'washing.autotype': {
            'Meta': {'object_name': 'AutoType'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        },
        'washing.price': {
            'Meta': {'object_name': 'Price'},
            'autotype': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.AutoType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'service': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['washing.Service']"}),
            'sum': ('django.db.models.fields.FloatField', [], {})
        },
        'washing.service': {
            'Meta': {'object_name': 'Service'},
            'description': ('django.db.models.fields.TextField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '250'})
        }
    }

    complete_apps = ['washing']
